//
//  MyCodeViewController.m
//  QXShowing
//
//  Created by 王道道 on 2018/4/20.
//  Copyright © 2018年 doll_dream. All rights reserved.
//

#import "MyCodeViewController.h"

@interface MyCodeViewController ()

@end

@implementation MyCodeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.title = @"推广二维码";
    [self initNavBarBackBtn];
    
    [self setUpUI];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)setUpUI {
    UIView *backView = [[UIView alloc] init];
    backView.backgroundColor = Bg_Color_333333;
    backView.layer.masksToBounds = YES;
    backView.layer.cornerRadius = 5;
    [self.view addSubview:backView];
    [backView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.view);
        make.centerY.equalTo(self.view).offset(-50);
        make.left.equalTo(self.view.mas_left).offset(50);
        make.height.equalTo(self.view.mas_width).offset(-50);
    }];
    
    UILabel *label = [[UILabel alloc] init];
    label.text = @"请给商展扫描";
    label.textColor = Text_Color_FFFFFF;
    label.font = BHFont_Size_18;
    [backView addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(backView);
        make.top.equalTo(backView.mas_top).offset(15);
    }];
    
    
    UIImageView *image = [[UIImageView alloc] init];
    image.image = [UIImage imageNamed:@"my-8"];
    [backView addSubview:image];
    [image mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.height.equalTo(backView.mas_width);
        make.bottom.equalTo(backView);
        make.left.equalTo(backView);
    }];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
